<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../css/app.css">
    <link rel="stylesheet" type="text/css" href="../../../css/tabBar.css">
    <link rel="stylesheet" type="text/css" href="../comm/shop_comm.css">
    <link rel="stylesheet" type="text/css" href="./batch_manage.css">
    <title>批量管理</title>
</head>

<body>
    <div class="header navigationBar">
      	<div class="wrapper">
          	<span id="btn-back" class="header-btn left-btn backtrack"></span>
          	<span class="title">批量管理</span>
      	</div>
  	</div>
  	<div class="container top-container" v-cloak>
  		<ul class="batch_mge_list">
			<li v-for="item in batchList">
				<input class="aui-radio" type="checkbox" name="radio" :data-goods_id="item.goods_id">
				<div class="batch_list_img">
					<img :src="item.cover+'?x-oss-process=image/resize,m_lfit,w_960'"/>
          <div v-if="!item.on_sale"><span>已下架</span></div>
				</div>
				<div class="batch_list_detail">
					<h2 v-html="item.name"></h2>
					<b>¥{{item.sale_price}}</b>
					<div>
						<span>库存<i>{{item.stock}}</i></span>
						<span>收藏<i>{{item.favorite}}</i></span>
						<u>添加时间：{{item.date_add}}</u>
					</div>
				</div>
			</li>
		</ul>
	  	<div class="batch_classify" @click="close_batch_classify">
	  		<div class="batch_classify_main" @click.stop>
	  			<h2>分类至（按分类展示商品，方便买家筛选）</h2>
	  			<ul class="batch_classify_list">
	  				<li v-for="item in classifyList">
	  					<label>
		  					<input class="aui-radio" type="radio" @click="getCategory(item.category_id)" name="radio" :value="item.category_id">{{item.name}}
	  					</label>
	  				</li>
	  			</ul>
	  			<a class="batch_new_classify" href="javascript: void(0);" @click="newClassify"><i class=""></i>新建分类</a>
	  			<div class="batch_classify_btn">
	  				<div>
	  					<a href="javascript:void(0);" @click="classifyCancel">取消</a>
	  				</div>
	  				<div>
	  					<a href="javascript:void(0);" @click="classifySure">确定</a>
	  				</div>
	  			</div>
	  		</div>
	  	</div>
	    <div class="shop_footer">
	  		<a href="javascript:void(0);" class="" @click="saleStatus" v-if='!inds'><img src="../../../image/shop/buy/buy-40.png"/>下架</a>
        <a href="javascript:void(0);" class="" @click="saleStatus" v-if='inds'><img src="../../../image/shop/buy/buy-37.png"/>上架</a>
	  		<a href="javascript:void(0);" class="" @click="classifyTo"><img src="../../../image/shop/buy/buy-39.png"/>分类至</a>
	  	</div>

      <!-- <div class="tc_box">
          <div class="tc_box_win">
            <div class="bz_box">
              <div class="bz_box_header">
                  新建分类
              </div>
              <div class="bz_box_input">
                  <input type="text" name="" ref="classifyName" value="" placeholder="新建分类,10个字以内">
              </div>
              <div class="bz_box_footer">
                  <div>
                      <a href="javascript:void(0);" @click="addClassifyCancel">取消</a>
                  </div>
                  <div>
                      <a href="javascript:void(0);" @click="addClassifySure">确定</a>
                  </div>
              </div>
            </div>
          </div>
      </div> -->

  	</div>
</body>
<script src="../../sea.js" data-main="../../main"></script>
<script type="text/javascript" src="../../vue.js"></script>
<script type="text/javascript" src="./batchManage.js"></script>
</html>
